package com.studycloud.service;

import org.springframework.stereotype.Component;

import static com.studyclud.constant.FallbackValue.INFOOK;
import static com.studyclud.constant.FallbackValue.TIMEOUT;

/**
 * 全局服务降级类 , fallback
 * @author JP
 */
@Component
public class PaymentFallbackService implements PaymentFeignHystrixService
{
    @Override
    public String paymentInfo_OK(Integer id)
    {
        return INFOOK;
    }

    @Override
    public String paymentInfo_NO(Integer id)
    {
        return TIMEOUT;
    }
}
